package fpzhan.plane.program.describe;

import fpzhan.plane.program.compose.CodeBlockCompose;
import fpzhan.plane.program.connect.CodeBlockConnect;

public class CheckParamForAdd<T extends CodeBlockCompose,E extends CodeBlockConnect> {

    private CodeBlockComment<T,E> comment  ;

    public CheckParamForAdd(T chainCodeBlockCompose, E chainCodeBlockConnect) {
        this.comment = new CodeBlockComment(chainCodeBlockCompose,chainCodeBlockConnect);
    }

    public CodeBlockComment<T,E> add(String... adds){
        this.comment.getCompose().setAdds(adds);
        return this.comment;
    }

    protected CodeBlockCompose getCompose(){
        return this.comment.getCompose();
    }

    protected CodeBlockComment<T,E> getComment(){
        return this.comment;
    }

}
